package com.bootdo.news.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.news.dao.NewsContentDao;
import com.bootdo.news.domain.NewsContentDO;
import com.bootdo.news.service.NewsContentService;



@Service
public class NewsContentServiceImpl implements NewsContentService {
	@Autowired
	private NewsContentDao bContentMapper;
	

	@Override
	public List<NewsContentDO> list(Map<String, Object> map){
		return bContentMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return bContentMapper.count(map);
	}
	
	@Override
	public int save(NewsContentDO bContent){
		return bContentMapper.save(bContent);
	}
	
	@Override
	public int update(NewsContentDO bContent){
		return bContentMapper.update(bContent);
	}
	
	@Override
	public int remove(Long cid){
		return bContentMapper.remove(cid);
	}
	
	@Override
	public int batchRemove(Long[] cids){
		return bContentMapper.batchRemove(cids);
	}

	@Override
	public NewsContentDO get(Integer cid) {
		// TODO Auto-generated method stub
		return bContentMapper.get(cid);
	}
	
}
